package scms.job;

import org.springframework.beans.factory.annotation.Autowired;

import com.xxl.job.core.handler.IJobHandler;

import lac.model.core.persistent.Session;
import lac.model.core.persistent.SessionFactory;

public abstract class ModelIJobHandler extends IJobHandler{

	@Autowired
	private SessionFactory sessionFactory;
	
	
	public Session getSession(){
		return sessionFactory.getSession();
	}


	public SessionFactory getSessionFactory() {
		return sessionFactory;
	}


	public void setSessionFactory(SessionFactory sessionFactory) {
		this.sessionFactory = sessionFactory;
	}
	
	

}
